import sys
import socket

ip = sys.argv[1]
port = int(sys.argv[2])
s = socket.socket()
s.connect((ip, port))

text = sys.argv[3]
text = text.encode()
s.send(text)
print(s.recv(1024).decode())
